home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / gadget / r3scriptg.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.8 KB  |  113 lines

  1.  
  2. // JavaScript wrapper for r3scriptg.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_SCRIPTGADGET_H = 1;
  7. include("oops/r3gadget.js")
  8.  
  9.  
  10. var R3CLID_SCRIPTGADGET = 1474;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Internal: script changed. Don't call.
  16. // p3: String, current line    
  17.  
  18. R3SCRIPTGM_SETSCRIPT = 1474000;
  19.  
  20. function mR3SCRIPTGM_SETSCRIPT(p3) {
  21.   DoA(this.r3obj, 1474000, p3, R3TID_STRING, 0);
  22. }
  23.  
  24. // Description: Internal: set current language to be used. Don't call.
  25. // p3: Integer, ordnum of the language    
  26.  
  27. R3SCRIPTGM_SETLANGUAGE = 1474001;
  28.  
  29. function mR3SCRIPTGM_SETLANGUAGE(p3) {
  30.   DoA(this.r3obj, 1474001, p3, R3TID_INTEGER, 0);
  31. }
  32.  
  33. // Description: Callback for adding new languages to the cycle. Don't call.
  34.  
  35. R3SCRIPTGM_ADDLANGUAGE = 1474002;
  36.  
  37. function mR3SCRIPTGM_ADDLANGUAGE() {
  38.   DoA(this.r3obj, 1474002, 0, R3TID_INTEGER, 0);
  39. }
  40.  
  41. // Description: Write string to the script window.
  42. // p3: String, string to be written    
  43.  
  44. R3SCRIPTGM_PRINT = 1474003;
  45.  
  46. function mR3SCRIPTGM_PRINT(p3) {
  47.   DoA(this.r3obj, 1474003, p3, R3TID_STRING, 0);
  48. }
  49.  
  50. // Description: Clear output buffer.
  51.  
  52. R3SCRIPTGM_CLEAROUTPUT = 1474006;
  53.  
  54. function mR3SCRIPTGM_CLEAROUTPUT() {
  55.   DoA(this.r3obj, 1474006, 0, R3TID_INTEGER, 0);
  56. }
  57.  
  58.  
  59.  
  60.  
  61. R3SCRIPTGA_ScriptClid = 1474501;
  62. function SetR3SCRIPTGA_ScriptClid(value) {
  63.   R3Set(this.r3obj, R3SCRIPTGA_ScriptClid, value, R3TID_INTEGER, 0); 
  64. }
  65.  
  66. function GetR3SCRIPTGA_ScriptClid() {
  67.   return R3Get(this.r3obj, R3SCRIPTGA_ScriptClid, R3TID_INTEGER, 0); 
  68. }
  69.  
  70. R3SCRIPTGA_Script = 1474502;
  71. function SetR3SCRIPTGA_Script(value) {
  72.   R3Set(this.r3obj, R3SCRIPTGA_Script, value, R3TID_STRING, 0); 
  73. }
  74.  
  75. function GetR3SCRIPTGA_Script() {
  76.   return R3Get(this.r3obj, R3SCRIPTGA_Script, R3TID_STRING, 0); 
  77. }
  78.  
  79. R3SCRIPTGA_CommandLine = 1474503;
  80. function SetR3SCRIPTGA_CommandLine(value) {
  81.   R3Set(this.r3obj, R3SCRIPTGA_CommandLine, value, R3TID_BOOLEAN, 0); 
  82. }
  83.  
  84. function GetR3SCRIPTGA_CommandLine() {
  85.   return R3Get(this.r3obj, R3SCRIPTGA_CommandLine, R3TID_BOOLEAN, 0); 
  86. }
  87.  
  88. var R3SCRIPTGA_NoOutput = 1474504; // Boolean
  89.  
  90.  
  91. function r3Scriptgadget () { 
  92.    this.base = r3God;
  93.    if(arguments.length) {
  94.       this.base(R3CLID_SCRIPTGADGET, arguments);
  95.    }
  96.    // Methods
  97.    this.SETSCRIPT=mR3SCRIPTGM_SETSCRIPT;
  98.    this.SETLANGUAGE=mR3SCRIPTGM_SETLANGUAGE;
  99.    this.ADDLANGUAGE=mR3SCRIPTGM_ADDLANGUAGE;
  100.    this.PRINT=mR3SCRIPTGM_PRINT;
  101.    this.CLEAROUTPUT=mR3SCRIPTGM_CLEAROUTPUT;
  102.  
  103.    // Attributes
  104.    this.GetScriptClid=GetR3SCRIPTGA_ScriptClid;
  105.    this.SetScriptClid=SetR3SCRIPTGA_ScriptClid;
  106.    this.GetScript=GetR3SCRIPTGA_Script;
  107.    this.SetScript=SetR3SCRIPTGA_Script;
  108.    this.GetCommandLine=GetR3SCRIPTGA_CommandLine;
  109.    this.SetCommandLine=SetR3SCRIPTGA_CommandLine;
  110. }
  111.  
  112. r3Scriptgadget.prototype=new r3Gadget;
  113. // r3scriptg.h_H